package com.lagou.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 学生信息实体类
 */
public class Student  {
	//学号
	private int id;
	//姓名
	private String name;
	//性别
	private String sex;
	//生日
	@JsonFormat(pattern="yyyy-MM-dd")
	private Date birth;

	public Student() {
	}

	public Student(int id, String name, String sex, Date birth) {
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.birth = birth;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	@Override
	public String toString() {
		return "Student{" +
				"id=" + id +
				", name='" + name + '\'' +
				", sex='" + sex + '\'' +
				", birth=" + birth +
				'}';
	}
}
